import { createRouter, createWebHistory } from 'vue-router'
import showList from '@/views/showList.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'showList',
      component: showList
    },
    {
      path: '/addItem',
      name: 'addItem',
      component: () => import('@/views/addItem.vue')
    }
  ]
})

export default router
